package com.b2c.ftysys.sevice;

import java.util.List;

import javax.servlet.http.HttpSession;

import com.b2c.ftysys.domain.Order;
import com.b2c.ftysys.domain.PageResult;
import com.b2c.ftysys.domain.Pdtorder;
import com.b2c.ftysys.vo.OrderVo;

public interface OrderReviewService {
	public List<Pdtorder> getOrderItems(String Sku);

	public List<Pdtorder> getOrderItemList(String[] Skus);

	public PageResult getOrderItemList(PageResult page);

	public PageResult getOrderItemList(String orderId, PageResult page);

	public Pdtorder getOrderItem(Long itemId);

	public void flushCache();

	public PageResult getOrderList(PageResult page);

	public Order getOrder(Long orderId);

	public int saveOrder(OrderVo vo);
	
	/**
	 * 判断此订单下得所有产品是否已完成
	 * @param order
	 * @return
	 */
	public boolean checkOrderIsDone(Order order);

	/**
	 * 变更订单的状态
	 * 
	 * @param order
	 *            订单实体
	 * @param status
	 *            状态代码
	 */
	public void updateOrderStatus(Order order, int status);

	public OrderVo imortReview(String fileAddr) throws ServicesException;

	public int ImportExcel(String fileAddr, HttpSession session)
			throws ServicesException;
}
